package com.jt.www.model.remote.user;

import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.List;

/**
 * @Description:
 * @author: wephone
 * @Date: 2018/6/27 13:41
 * @ModifiedDate：
 * @Copyright:江泰保险股份有限公司
 */
public class LoginResultVO {

    /**
     * 用户账号id
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private Long userId;
    /**
     * token
     */
    private String token;

    /**
     * 刷新token
     */
    private String refreshToken;

    /**
     * token 有效时间
     */
    private String tokenExpireTime;

    /**
     * 登录账户
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String loginAccount;

    /**
     * 用户code
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String userCode;

    /**
     * 用户等级
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String level;

    /**
     * 企业名称
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String custFullName;

    /**
     * 所属行业编码
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String industryCode;

    /**
     * 所属行业
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String industry;

    /**
     * 企业行政地区编码
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String administrativeAreaCode;

    /**
     * 企业详细地址
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String orgDetailedAddress;

    /**
     * 企业认证 审核状态，0-未审核，1-审核通过，2-审核退回
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String auditStatus;


    /**
     * 员工号
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String staffNo;

    /**
     * 渠道编码
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String channelNo;
    /**
     * 用户名称
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String userName;
    /**
     * 是否认证
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String isAttestation;


    /**
     * 1-内勤 2-外勤 3-其他
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String contactType;

    /**
     * 私保 子渠道编码
     * 00-客户服务部,01-BBC,02-全员营销,03-专营私保
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String subShannelCode;

    /**
     * 手机号
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String phone;
    /**
     * 手机号
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String userPhone;

    /**
     * 职务
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String jobTitle;

    /**
     * 分公司编码
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String branchCode;

    /**
     * 分公司名称
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String branchName;

    /**
     * 分公司详细地址
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String jtBranchDetailAddress;

    /**
     * 分支机构联系人
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String jtBranchContactPerson;

    /**
     * 分支机构联系人手机号
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String jtBranchContactPhoneNum;


    /**
     * 部门编码
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String departmentCode;

    /**
     * 部门名称
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String departmentName;
    /**
     * 用户邮箱
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String email;
    /**
     * 二维码
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String userImageUrl;
    /**
     * 用户头像
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String qrCodeUrl;

    /**
     * 用户菜单资源
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private List<RoleResourceVO> roleResourceVOS;

    /**
     * 联系人所在省份
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String provinceCode;

    /**
     * 联系人所在城市
     */
    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private String cityCode;

    /*public String getUserCode(){
        if(StringUtils.isEmpty(userCode)){
            throw new BizException("用户中心获取用户code为空");
        }
        return userCode;
    }

    public String getUserName(){
        if(StringUtils.isEmpty(userName)){
            throw new BizException("用户中心获取用户名为空");
        }
        return userName;
    }

    public String getBranchCode(){
        if(StringUtils.isEmpty(branchCode)){
            throw new BizException("用户中心获取分支机构code为空");
        }
        return branchCode;
    }*/

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getTokenExpireTime() {
        return tokenExpireTime;
    }

    public void setTokenExpireTime(String tokenExpireTime) {
        this.tokenExpireTime = tokenExpireTime;
    }

    public String getLoginAccount() {
        return loginAccount;
    }

    public void setLoginAccount(String loginAccount) {
        this.loginAccount = loginAccount;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getCustFullName() {
        return custFullName;
    }

    public void setCustFullName(String custFullName) {
        this.custFullName = custFullName;
    }

    public String getIndustryCode() {
        return industryCode;
    }

    public void setIndustryCode(String industryCode) {
        this.industryCode = industryCode;
    }

    public String getIndustry() {
        return industry;
    }

    public void setIndustry(String industry) {
        this.industry = industry;
    }

    public String getAdministrativeAreaCode() {
        return administrativeAreaCode;
    }

    public void setAdministrativeAreaCode(String administrativeAreaCode) {
        this.administrativeAreaCode = administrativeAreaCode;
    }

    public String getOrgDetailedAddress() {
        return orgDetailedAddress;
    }

    public void setOrgDetailedAddress(String orgDetailedAddress) {
        this.orgDetailedAddress = orgDetailedAddress;
    }

    public String getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus;
    }

    public String getStaffNo() {
        return staffNo;
    }

    public void setStaffNo(String staffNo) {
        this.staffNo = staffNo;
    }

    public String getChannelNo() {
        return channelNo;
    }

    public void setChannelNo(String channelNo) {
        this.channelNo = channelNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getIsAttestation() {
        return isAttestation;
    }

    public void setIsAttestation(String isAttestation) {
        this.isAttestation = isAttestation;
    }

    public String getContactType() {
        return contactType;
    }

    public void setContactType(String contactType) {
        this.contactType = contactType;
    }

    public String getSubShannelCode() {
        return subShannelCode;
    }

    public void setSubShannelCode(String subShannelCode) {
        this.subShannelCode = subShannelCode;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getJobTitle() {
        return jobTitle;
    }

    public void setJobTitle(String jobTitle) {
        this.jobTitle = jobTitle;
    }

    public String getBranchCode() {
        return branchCode;
    }

    public void setBranchCode(String branchCode) {
        this.branchCode = branchCode;
    }

    public String getBranchName() {
        return branchName;
    }

    public void setBranchName(String branchName) {
        this.branchName = branchName;
    }

    public String getJtBranchDetailAddress() {
        return jtBranchDetailAddress;
    }

    public void setJtBranchDetailAddress(String jtBranchDetailAddress) {
        this.jtBranchDetailAddress = jtBranchDetailAddress;
    }

    public String getJtBranchContactPerson() {
        return jtBranchContactPerson;
    }

    public void setJtBranchContactPerson(String jtBranchContactPerson) {
        this.jtBranchContactPerson = jtBranchContactPerson;
    }

    public String getJtBranchContactPhoneNum() {
        return jtBranchContactPhoneNum;
    }

    public void setJtBranchContactPhoneNum(String jtBranchContactPhoneNum) {
        this.jtBranchContactPhoneNum = jtBranchContactPhoneNum;
    }

    public String getDepartmentCode() {
        return departmentCode;
    }

    public void setDepartmentCode(String departmentCode) {
        this.departmentCode = departmentCode;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUserImageUrl() {
        return userImageUrl;
    }

    public void setUserImageUrl(String userImageUrl) {
        this.userImageUrl = userImageUrl;
    }

    public String getQrCodeUrl() {
        return qrCodeUrl;
    }

    public void setQrCodeUrl(String qrCodeUrl) {
        this.qrCodeUrl = qrCodeUrl;
    }

    public List<RoleResourceVO> getRoleResourceVOS() {
        return roleResourceVOS;
    }

    public void setRoleResourceVOS(List<RoleResourceVO> roleResourceVOS) {
        this.roleResourceVOS = roleResourceVOS;
    }

    public String getProvinceCode() {
        return provinceCode;
    }

    public void setProvinceCode(String provinceCode) {
        this.provinceCode = provinceCode;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }
}
